package com.micro.model;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import lombok.Data;

/**
 * 用户
 * @author Administrator
 *
 */
@Table(
        name="disk_user",
        indexes = {
                @Index(columnList = "id")
        }
)
@Entity
@Data
public class DiskUser {
    @Id
    @GenericGenerator(name = "uuid",strategy = "uuid")
    @GeneratedValue(generator = "uuid")
    @Column(name="id",columnDefinition="VARCHAR(50)")
    private String id;

    @Column(name="username",columnDefinition="VARCHAR(30)")
    private String username;

    @Column(name="nickname",columnDefinition="VARCHAR(55)")
    private String nickname;

    @Column(name="password",columnDefinition="VARCHAR(50)")
    private String password;

    @Column(name="telephone",columnDefinition="VARCHAR(15)")
    private String telephone;

    @Column(name="orgid",columnDefinition="VARCHAR(50)")
    private String orgid;

    @Column(name="state",columnDefinition="int")
    private int state;

}
